package com.eksframework.commons.core.request;

import java.io.Serializable;

/**
 * 分页参数
 *
 * @author chenfenghai
 * @date 2019-12-06 14:42
 * @blame Android Team
 */
public class PageParam implements Serializable {

    private static final long serialVersionUID = -8688330424862844921L;

    public static final long DEFAULT_TOTAL = 0;
    public static final int DEFAULT_PAGE_NUMBER = 1;
    public static final int DEFAULT_PAGE_SIZE_1 = 1;
    public static final int DEFAULT_PAGE_SIZE_10 = 10;
    public static final int DEFAULT_PAGE_SIZE_15 = 15;
    public static final int DEFAULT_PAGE_SIZE_20 = 20;
    public static final int DEFAULT_PAGE_SIZE_30 = 30;
    public static final int DEFAULT_PAGE_SIZE_40 = 40;
    public static final int DEFAULT_PAGE_SIZE_50 = 50;
    public static final int DEFAULT_PAGE_SIZE_100 = 100;
    public static final int DEFAULT_PAGE_SIZE_200 = 200;
    public static final int DEFAULT_PAGE_SIZE_1000 = 1000;
    public static final int DEFAULT_PAGE_SIZE_10000 = 10000;
    public static final int DEFAULT_PAGE_SIZE_100000 = 100000;
    public static final int DEFAULT_PAGE_SIZE_MAX_VALUE = Integer.MAX_VALUE;

    /**
     * 当前页数
     */
    private int pageNumber = DEFAULT_PAGE_NUMBER;

    /**
     * 每页记录数
     */
    private int pageSize = DEFAULT_PAGE_SIZE_10;

    /**
     * 总页数
     */
    private long total = DEFAULT_TOTAL;

    public int getPageNumber() {
        return pageNumber;
    }

    public void setPageNumber(int pageNumber) {
        this.pageNumber = pageNumber;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }
}